protected void configureProvisionedServices() throws Exception {
m_echoServlet = new EchoServlet();
Dictionary<String, String> dictionary = new Hashtable<>();
dictionary.put(HttpConstants.ENDPOINT, "/echoServlet");
m_echoServletService = m_dependencyManager.createComponent()
.setImplementation(m_echoServlet)
.setInterface(Servlet.class.getName(), dictionary);
m_mockHttp = new MockHttpService();
m_mockHttpService = m_dependencyManager.createComponent()
.setImplementation(m_mockHttp)
.setInterface(HttpService.class.getName(), null);
}
|